//package com.example.tests;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class Dealer_DealerRSVPPage_TextVerify extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gfwfn.com/DealerLogin.php");
		selenium.start();
	}

	@Test
	public void testUntitled() throws Exception {
		selenium.open("/DealerLogin.php");
		selenium.type("id=txtUsername", "99999");
		selenium.type("id=txtPassword", "Ldldvht9");
		selenium.click("name=submit");
		selenium.waitForPageToLoad("30000");
		selenium.click("css=img[alt=\"RSVPs\"]");
		selenium.waitForPageToLoad("30000");
		verifyTrue(selenium.isTextPresent("Pre-Registered Participants"));
		verifyTrue(selenium.isElementPresent("css=h2"));
		verifyTrue(selenium.isTextPresent("Total consumers who have pre-registered for your Dealership: 51"));
		verifyTrue(selenium.isTextPresent("Keep in mind that some guests will not RVSP. There may be a significant amount of walk-in traffic the day of the event.  Please plan accordingly."));
		verifyTrue(selenium.isTextPresent("All consumers who have pre-registered are listed below, with their contact information, in alphabetical order."));
		
		
	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}
